<?php


use App\Admin\Controllers\AppUpgradeController;
use App\Admin\Controllers\AreaJobPositionController;
use App\Admin\Controllers\BannerController;
use App\Admin\Controllers\BannerPlazaController;
use App\Admin\Controllers\CategoryController;
use App\Admin\Controllers\CensusController;
use App\Admin\Controllers\ChatController;
use App\Admin\Controllers\CompanyController;
use App\Admin\Controllers\FeedbackController;
use App\Admin\Controllers\JobpositionController;
use App\Admin\Controllers\JobPositionRecommendController;
use App\Admin\Controllers\JobPositionUpdateController;
use App\Admin\Controllers\NewsController;
use App\Admin\Controllers\PlazaController;
use App\Admin\Controllers\RegistrationLogController;
use App\Admin\Controllers\SignUpJobPositionController;
use App\Admin\Controllers\SmsSendlogController;
use App\Admin\Controllers\UserController;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('/user', UserController::class);
    //轮播图
    $router->resource('banner', BannerController::class);
    //广场轮播图
    $router->resource('banner-plaza', BannerPlazaController::class);
    //分类
    $router->resource('category', CategoryController::class);
    //企业信息
    $router->resource('company', CompanyController::class);
    //职位管理
    $router->resource('Jobposition', JobpositionController::class);
    //职位推荐管理
    $router->resource('Jobposition-recommend', JobPositionRecommendController::class);
    //兼职广场
    $router->resource('plaza', PlazaController::class);
    //专区职位
    $router->resource('area-list', AreaJobPositionController::class);
    //短信发送记录
    $router->resource('/sms-send-log', SmsSendlogController::class);
    //客服留言
    $router->resource('/feedback', FeedbackController::class);
    //报名列表
    $router->get('sign-up', [SignUpJobPositionController::class,'index']);
    //职位修改记录
    $router->resource('job-position-update', JobPositionUpdateController::class);
    //职位审核
    $router->post('job-position-check', [JobpositionController::class,'jobPositionCheck']);
    //新闻
    $router->resource('news', NewsController::class);
    //统计
    $router->resource('census', CensusController::class);
    //统计
    $router->resource('chat', ChatController::class);
    //app升级
    $router->resource('app-update', AppUpgradeController::class);
    //报名单日志
    $router->resource('registration-log', RegistrationLogController::class);
});
